package com.ys.controller.api.mall;

import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.ModelAttribute;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.ys.entity.mall.TmGoodsStockRunning;
import com.ys.service.sys.CommonApiService;
import com.ys.vo.LayuiTableVoJA;

@Controller
@RequestMapping("/api/inter/tmGoodsStockRunning")
public class ApiInterTmGoodsStockRunningController {
	@Autowired
	private CommonApiService<TmGoodsStockRunning> commonApiService;

	@RequiresPermissions("tmGoodsStockRunning:view")
	@RequestMapping("/search")
	@ResponseBody
	public LayuiTableVoJA search(@ModelAttribute TmGoodsStockRunning cond){
		return commonApiService.searchLay(cond);
	}
}